<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\captcha\Captcha;
/* @var $this yii\web\View */
/* @var $model common\models\Needs */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="needs-form col-md-6 col-sm-6 col-xs-12">

    <?php $form = ActiveForm::begin(); ?>
    <?= $form->field($model, 'name')->textInput(['maxlength' => true,'placeholder'=>'请输入课程名'])?>
    <?= $form->field($model, 'link')->textInput(['maxlength' => true,'placeholder'=>'在哪个网站有这个课程'])->label('课程链接有利于课程查找(可不填)')?>
    <?= $form->field($model, 'email')->textInput(['maxlength' => true,'placeholder'=>'输入邮箱接收需求结果'])?>
    

   
</div>
<div class="needs-form col-md-6 col-sm-6 col-xs-12">
 <?= $form->field($model, 'message')->textarea(['rows' => 6,'placeholder'=>'填写课程列表如有课程链接或者没有详情可以忽略'])?>
 <?=$form->field($model, 'verifyCode')->widget(Captcha::className(), ['captchaAction' => 'needs/captcha','imageOptions' => ['alt' => '点击换图','title' => '点击换图','style' => 'cursor:pointer']])?>
 <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '提交' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary'])?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
